// BaseEffect.cpp: implementation of the CBaseEffect class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "client.h"
#include "BaseEffect.h"

#include "Global.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


CBaseEffect::CBaseEffect() : CBaseObject()
{
	EffectKind = EFFECT_NONE;
	//FrameCnt = 0;

	if(!bDontAddTurnLock) {
		bAddTurnLock = Game.AddTurnLockCount();
	}
}

CBaseEffect::~CBaseEffect()
{
	//CBaseObject::~CBaseObject();

	if(bAddTurnLock) Game.DelTurnLockCount();
	bAddTurnLock = FALSE;
}
